from rest_framework import serializers

from apps.category.models import Category


class CatgoryListSerializer(serializers.ModelSerializer):
    """分类序列化器类"""

    class Meta:
        model = Category
        fields = ('id', "name", "parent_id")


